package com.xrtn.service;

import com.xrtn.bean.TOrderInfo;
import com.xrtn.page.Page;
import com.xrtn.utils.ResponseData;

import java.util.List;
import java.util.Map;

/**
 * Created by tu_pei on 2018/3/9.
 */
public interface ISysOrderService {
    /**
     * 查询订单列表
     * @param params
     * @return
     */
    Page selectOrderList(Page page,Map<String, Object> params);

    /**
     * 绩效分页
     * @param page
     * @param params
     * @return
     */
    Page selectOrderSaleList(Page page,Map<String, Object> params);
    /**
     * 查询订单详情
     * @param params
     * @return
     */
    Map<String,Object> selectOrderInfo(Map<String,Object> params);

    /**
     * 查询订单详情
     * @param params
     * @return
     */
    TOrderInfo selectOrderInfoByBookingId(Map<String,Object> params);

    /**
     * 根据推拿服务id订单总价查询次卡和可用优惠券列表
     * @param params
     * @return
     */
    Map<String,Object> selectUserCardList(Map<String,Object> params);

    /**
     * 修改订单
     * @return
     */
    Integer updateOrderInfo(TOrderInfo orderInfo);
    /**
     * 修改订单
     * @return
     */
    ResponseData updateOrderInfo(Map<String,Object> params, ResponseData data);
    /**
     * 修改订单
     * @return
     */
    ResponseData updatePayOrder(Integer orderId,String userPhone,String code, ResponseData data);

    /**
     * 取消代付
     * @param orderId
     * @param data
     * @return
     */
    ResponseData updateOtherPayOrderInfo(Integer orderId, ResponseData data);
    /**
     * 查询订单详情
     * @param params
     * @return
     */
    ResponseData saveOrderInfo(Map<String,Object> params) throws Exception;
    /**
     * 取消代付
     * @param orderId
     * @param doctorId 新的大夫id
     * @param doctorSubId 新门店id
     * @return
     */
    Integer updateOrderDoctor(Integer orderId, Integer doctorId, Integer doctorSubId);

    /**
     *
     * @param orderId
     * @param doctorId
     * @param doctorSubId
     * @return
     */
    Integer updateAccountUserInfoDoctor(Integer orderId, Integer doctorId, Integer doctorSubId);

}
